<?php

class myIpadProductRouter extends myProductRouter{

	protected $product;

	public function getProductObject(){

		if(!$this->product){
			$params = $this->getParameters();
			$this->product = Doctrine::getTable('Product')->findOneByBarcode($params['id']);
		}

		return $this->product;
	}
}